ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Storage Namespace / NativeFileStream Class / Read Method / Read(Byte[],Int32,Int32) Method

In This Topic
    Read(Byte[],Int32,Int32) Method
    In This Topic
    When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function Read( _
       ByVal buffer() As System.Byte, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) As System.Integer
    public override System.int Read( 
       System.byte[] buffer,
       System.int offset,
       System.int count
    )

    Parameters

    buffer
    offset
    count

    Return Value

    The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
    Exceptions
    ExceptionDescription
    The sum of offset and count is larger than the buffer length.
    buffer is a null reference (Nothing in Visual Basic).
    offset or count is negative.
    An I/O error occurs.
    The stream does not support reading.
    Methods were called after the stream was closed.
    See Also